<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="java.util.HashMap"%>



<%--以table形式显示数据--%>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Insert title here</title>
</head>
<style type="text/css">
    .add_btn{
        float: right;
    }
</style>
<body>
<!-- 新增、删除 -->
<div class="panel panel-default" style="margin-top:10px">

    <div class="more_core3">
        <!-- <button type="button" class="btn btn-success yogurt_search_button2" onclick="console('add','');">新增设备</button> -->

        <%--<button type="button" class="btn btn-success yogurt_search_button2" onclick="window.location.href='${ctx }/sbgl/sbgl_add_list' ">新增记录</button>--%>
        <div>
            <a class="add_btn" href="/resume/add">新增记录</a>
        </div>
    </div>
</div>
<!-- 列表 -->
<div class="yogurt_elementsbox_core clear">
    <div class="yogurt_elementsbox_table_article" id="yogurt_elementsbox_table_article">
        <table id="tableBody" border="0" cellspacing="0" cellpadding="0" class="table yogurt_elementsbox_table">
            <thead>
            <tr class="yogurt_tab_back" onmouseover="this.className='yogurt_tab_trhover'" onmouseout="this.className='yogurt_tab_back'">
                <td width="10%">编号</td>
                <td width="10%">姓名</td>
                <td width="10%">地址</td>
                <td width="10%">电话</td>
                <td width="17%" style="text-align:center;">操作</td>
            </tr>
            </thead>
            <tbody id="userTb">
            <c:forEach var="resume" items="${list}" varStatus="status">
                <tr>
                    <td>${resume.id }</td>
                    <td>${resume.name }</td>
                    <td>${resume.address }</td>
                    <td>${resume.phone }</td>
                    <td style="text-align:center">
                        <a class="delete_btn" href="/resume/delete?${resume.id }" onclick="return confirm('确定删除卡号为${resume.id }的记录吗？')"> 删除</a>
                        <a class="update_btn" href="/resume/update?${resume.id }" onclick="return confirm('确定修改卡号为${resume.id }的记录吗？')">| 修改</a>
                        <a class="detail_btn" href="/resume/detail?${resume.id }" onclick="return confirm('确定查看卡号${resume.id }的详细信息吗？')">| 详情</a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>

        </table>

    </div>
</div>
</body>
</html>
